package com.service.impl;

import com.service.ITestService;
import org.springframework.stereotype.Service;
import java.util.*;
import com.entity.*;

@Service("testService")
public class TestService implements ITestService{

    @Override
    public List<TestBean> selectAll() {
        List<TestBean> list = new ArrayList();

        for(int i=1;i<=5;i++){
            TestBean t = new TestBean();
            t.setTid(i);
            t.setTname("test-"+i);
            list.add(t);
        }

        return list;
    }
}
